package com.puntodonna.fogliocassa.client.action;

import com.gwtplatform.dispatch.shared.Result;
import com.puntodonna.fogliocassa.shared.FoglioCassaObj;
import com.puntodonna.fogliocassa.shared.MovimentoObj;

import java.lang.String;
import java.util.Collection;

public class PersistanceActionResult implements Result {

	private String action;
	
	private Collection<FoglioCassaObj> fogliCassaCollection;
	private FoglioCassaObj foglioCassaObj;
	private MovimentoObj movimentoObj;

	@SuppressWarnings("unused")
	private PersistanceActionResult() {
		// For serialization only
	}

	public PersistanceActionResult(String action, Collection<FoglioCassaObj> fogliCassaCollection) {
		this.action = action;
		this.fogliCassaCollection = fogliCassaCollection;
	}
	
	public PersistanceActionResult(String action, FoglioCassaObj foglioCassaObj) {
		this.action = action;
		this.foglioCassaObj = foglioCassaObj;
	}
	
	public PersistanceActionResult(String action, MovimentoObj movimentoObj) {
		this.action = action;
		this.movimentoObj = movimentoObj;
	}

	public String getAction() {
		return action;
	}
	
	public Collection<FoglioCassaObj> getFogliCassaCollection() {
		return fogliCassaCollection;
	}
	
	public FoglioCassaObj getFoglioCassaObj() {
		return foglioCassaObj;
	}
	
	public MovimentoObj getMovimentoObj() {
		return movimentoObj;
	}
}
